package com.auhaix.common;

/**
 * Author: Auhaix
 * E-mail: xh@qiandw.com
 * Description:自定义异常
 * CreatedTime: 2017/8/2 20:33
 * Modified by:
 */
public class UserException extends RuntimeException {
    private String msgCode;

    public UserException(String message, String msgCode) {
        super(message);
        this.msgCode = msgCode;
    }

    public UserException(ResponseEnum responseEnum) {
        super(responseEnum.getMsg());
        this.msgCode = responseEnum.getMsgCode();
    }

    public String getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(String msgCode) {
        this.msgCode = msgCode;
    }
}
